package cn.yunhe.service;

import cn.yunhe.pojo.Permission;
import cn.yunhe.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IRoleService {

    public List<Role> queryUserRoles(String uid);

    public List<Role> queryAll();

    public void insertRole(Role role);

    public List<Permission> queryRolePermissions(String roleId);

    public void insertRolePermissions(String roleId, String[] ids);
}
